package com.wwh.spring.aop;

import org.springframework.stereotype.Component;

/**
 * @author Albert
 * @date 2024/8/27-21:33
 * @describe
 */
@Component
public class Cal implements Calculator{
    @Override
    public float getSum(float num1, float num2) {
        float res = 0;
        res = num1 + num2;
        System.out.println("getSum - res = " + res);
        return res;
    }

    @Override
    public float getSub(float num1, float num2) {
        float res = 0;
        res = num1 - num2;
        System.out.println("getSub - res = " + res);
        return res;
    }
}
